
import request from '@/utils/request'

/**
 * 首页-头部分类-PC
 * @returns {Promise} axios Promise
 */
export const findHomeCategory = () => {
  return request('/home/category/head', 'get')
}
/**
 * 首页-广告区域
 * @returns {Promise} axios Promise
 */
export const findHomeBanner = () => {
  return request('/home/banner', 'get')
}
// 首页新鲜好物
export const findHomeNew = (limit = 4) => {
  return request('/home/new', 'get', { limit: limit })
}
/**
 * 首页-人气推荐
 * @returns {Promise} axios Promise
 */
export const findHot = () => {
  return request('home/hot', 'get')
}
